local os = os
local print = print
local Security = Security
local debug = debug
local UI = UI
local config = config

function IsLoggedIn()
	return UI.playerLoggedIn
end

function GetLocale()
	return "enUS"
end

function GetTime()
	return os.clock()
end

function GetRealmName()
	return "Realm"
end

local qtable = {
	[0] = { 1, 1, 1, "|cffffff" },		-- poor
	[1] = { 0.9, 0.1, 0.1, "|c808080" }, -- common
	[2] = { 0.5, 0.5, 0.5, "|c808080" }, -- uncommon
	[3] = { 0.5, 0.5, 0.5, "|c808080" }, -- rare
	[4] = { 0.5, 0.5, 0.5, "|c808080" }, -- epic
	[5] = { 0.5, 0.5, 0.5, "|c808080" }, -- legendary
	[6] = { 0.5, 0.5, 0.5, "|c808080" }, -- artifact
}

qtable[-1] = qtable[0]

function GetItemQualityColor(q)
	return unpack(qtable[q])
end

function GetGameTime()
	local d = os.date("*t")
	return d.hour, d.min
end

function PlaySound(sound)
	print("PLAYSOUND", sound)
	--debug.debug()
end

function PlaySoundFile(sound)
	print("PLAYSOUNDFILE", sound)
	--debug.debug()
end

function HideNameplates()
end

function HideFriendNameplates()
end

function SetWhoToUI()
end

function GetTabardCreationCost()
	return 100000
end

function GetSendMailPrice()
	return 30
end

function GetNetStats()
	return 1, 2, 3
end

function CheckReadyCheckTime()
end

function IsResting()
end

function InCombatLockdown()
	return Security.combat
end

function HasFullControl()
	return 1
end

function GetAccountExpansionLevel()
	return 1
end

function RestartGx()
	print("RESTARTGX")
end

function RequestRaidInfo()
end

function debuginfo()
--	print("debuginfo")
end

function GetBuildInfo()
	return config.VERSION, config.BUILD, config.RELEASE, tostring(config.TOC)
end

function CancelLogout()
end

function Logout()
end

function Quit()
end

local helm, cloack = 1, 1

function ShowingHelm()
	return helm and 1 or nil
end

function ShowCloak(flag)
	cloack = flag and 1 or nil
end

function ShowHelm(flag)
	helm = flag and 1 or nil
end

function ShowingCloak()
	return cloack and 1 or nil
end

function GetCorpseRecoveryDelay()
end

function GetRepairAllCost()
end

function GetWatchedFactionInfo()
end

function GetReleaseTimeRemaining()
	return 0
end

function GetComboPoints()
	return 0
end

function ClearTarget()
end

function PartialPlayTime()
end

function NoPlayTime()
end

function InCinematic()
end

function CheckInteractDistance(type, unit)
end

function GetItemInfo(link)
end

function ResetTutorials()
end

function IsDesaturateSupported()
end

function GetCurrentMapDungeonLevel()
	return 0
end

function CombatTextSetActiveUnit()
end

function IsMounted()
end

function IsSwimming()
end

function IsFlying()
end

function IsFlyableArea()
end

function IsOutdoors()
end

function IsIndoors()
end

function IsStealthed()
end

function GetShapeshiftForm()
        return 1
end

function GetMouseButtonClicked()
end

function IsStereoVideoAvailable()
end

function MouseEnableUI()
end

function IsPlayerResolutionAvailable()
end
